package com.work.mb;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.logging.Logger;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import com.work.facade.SprintFacade;
import com.work.model.Project;
import com.work.model.Task;
import com.work.model.User;

/**
 * The Class SprintMB.
 *
 * @author "Mihai Roman"
 */
@ManagedBean(name = "sprintMB")
@SessionScoped
public class SprintMB implements Serializable {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = -1289592075237382805L;
	private final static Logger LOG = Logger.getLogger(SprintMB.class.getName()); 
	
	@EJB
	private SprintFacade sprintFacade;

	private Date creationDate;
	private int duration;
	private Date endDate;
	private String name;
	private Date startDate;
	private Date updatedDate;
	private Project project;
	private User userCreatedBy;
	private User userUpdatedBy;
	private List<Task> tasks;
	
	/**
	 * @return the creationDate
	 */
	public Date getCreationDate() {
		return creationDate;
	}
	/**
	 * @param creationDate the creationDate to set
	 */
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	/**
	 * @return the duration
	 */
	public int getDuration() {
		return duration;
	}
	/**
	 * @param duration the duration to set
	 */
	public void setDuration(int duration) {
		this.duration = duration;
	}
	/**
	 * @return the endDate
	 */
	public Date getEndDate() {
		return endDate;
	}
	/**
	 * @param endDate the endDate to set
	 */
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the startDate
	 */
	public Date getStartDate() {
		return startDate;
	}
	/**
	 * @param startDate the startDate to set
	 */
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	/**
	 * @return the updatedDate
	 */
	public Date getUpdatedDate() {
		return updatedDate;
	}
	/**
	 * @param updatedDate the updatedDate to set
	 */
	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}
	/**
	 * @return the project
	 */
	public Project getProject() {
		return project;
	}
	/**
	 * @param project the project to set
	 */
	public void setProject(Project project) {
		this.project = project;
	}
	/**
	 * @return the userCreatedBy
	 */
	public User getUserCreatedBy() {
		return userCreatedBy;
	}
	/**
	 * @param userCreatedBy the userCreatedBy to set
	 */
	public void setUserCreatedBy(User userCreatedBy) {
		this.userCreatedBy = userCreatedBy;
	}
	/**
	 * @return the userUpdatedBy
	 */
	public User getUserUpdatedBy() {
		return userUpdatedBy;
	}
	/**
	 * @param userUpdatedBy the userUpdatedBy to set
	 */
	public void setUserUpdatedBy(User userUpdatedBy) {
		this.userUpdatedBy = userUpdatedBy;
	}
	/**
	 * @return the tasks
	 */
	public List<Task> getTasks() {
		return tasks;
	}
	/**
	 * @param tasks the tasks to set
	 */
	public void setTasks(List<Task> tasks) {
		this.tasks = tasks;
	}
	
}
